package com.ling.plasticene.recyclerview.loadmore;

import android.support.annotation.UiThread;
import android.support.v7.widget.RecyclerView;

import com.ling.plasticene.common.Stateable;


/**
 * Function：
 * Modified：
 * Created by ling(quan.ling@hotmail.com) on 15/11/13.
 */
public interface LoadMore extends Stateable {

    interface OnLoadMoreListener {
        /**
         * 加载更多事件监听
         * 加载完成后需调用{@link Stateable#setState(int)}更新状态
         * Tip: 无需调用{@link RecyclerView.Adapter#notifyDataSetChanged()}更新Item
         */
        @UiThread
        void onLoadMore();
    }

    void setLoadMoreListener(OnLoadMoreListener loadMoreListener);
}
